package com.vincce.sport.entity;

import javax.xml.bind.annotation.XmlRootElement;

import com.vincce.sport.core.utils.ConvertUtil;

import java.util.Date;
import java.util.List;

/**
 * 资源实体类
 * User: liufuqiang
 * Date: 3/14/14
 * Time: 3:58 PM
 * To change this template use File | Settings | File Templates.
 */
@XmlRootElement
public class SysResource {
    private Long id;                 //ID
    private String resourceName;     //资源名称
    private String resourceUrl;      //资源地址
    private Integer parentId;        //上级目录ID
    private Integer createUser;      //创建人
    private Date createTime;         //创建时间
    private Integer updateUser;      //更新人
    private Date updateTime;         //更新时间
    
    private List<SysResource> childList;
    
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getResourceName() {
		return resourceName;
	}
	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}
	public String getResourceUrl() {
		return resourceUrl;
	}
	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public Integer getCreateUser() {
		return createUser;
	}
	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}
	public String getCreateTime() {
		return ConvertUtil.format("yyyy-MM-dd", createTime);
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(Integer updateUser) {
		this.updateUser = updateUser;
	}
	public String getUpdateTime() {
		return ConvertUtil.format("yyyy-MM-dd", updateTime);
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public List<SysResource> getChildList() {
		return childList;
	}
	public void setChildList(List<SysResource> childList) {
		this.childList = childList;
	}

}
